//
//  LXExtension+UIBarItem.swift
//  LXExtensions
//
//  Created by yoctech on 2021/8/11.
//

import Foundation

@objc public extension UIBarItem {
    @objc func lx_title(font: UIFont, color: UIColor, for state: UIControl.State) {
        self.setTitleTextAttributes([
                                        NSAttributedString.Key.font : font,
                                        NSAttributedString.Key.foregroundColor:color],
                                    for: state)
    }
}
